package com.sooth.system.log.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import lombok.Data;

import java.sql.Types;

/**
 * @Description: 系统访问记录
 * @Author: Lion Li
 * @Date: 2023-09-08 22:11:08
 */
@Data
@Table("sys_login_log")
public class SysLoginLog {

    /**
     * 访问ID
     */
    @Id
    @Column(value = "id", jdbcType = Types.BIGINT)
    private Long id;

    /**
     * 租户编号
     */
    @Column(value = "tenant_id", jdbcType = Types.VARCHAR)
    private String tenantId;

    /**
     * 用户账号
     */
    @Column(value = "user_name", jdbcType = Types.VARCHAR)
    private String userName;

    /**
     * 登录IP地址
     */
    @Column(value = "login_ip", jdbcType = Types.VARCHAR)
    private String loginIp;

    /**
     * 登录地点
     */
    @Column(value = "login_location", jdbcType = Types.VARCHAR)
    private String loginLocation;

    /**
     * 浏览器类型
     */
    @Column(value = "browser", jdbcType = Types.VARCHAR)
    private String browser;

    /**
     * 操作系统
     */
    @Column(value = "os", jdbcType = Types.VARCHAR)
    private String os;

    /**
     * 登录状态（0成功 1失败）
     */
    @Column(value = "status", jdbcType = Types.CHAR)
    private String status;

    /**
     * 提示消息
     */
    @Column(value = "msg", jdbcType = Types.VARCHAR)
    private String msg;

    /**
     * 访问时间
     */
    @Column(value = "login_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date loginTime;
}
